package  
{
	import net.flashpunk.Entity;
	import net.flashpunk.FP;
	import net.flashpunk.graphics.Image;
	import net.flashpunk.graphics.Spritemap;
	import net.flashpunk.masks.Pixelmask;
	import net.flashpunk.utils.Input;
	/**
	 * ...
	 * @author Donatello
	 */
	public class Couple extends Entity
	{
		[Embed(source = "img/sheets/coupleSheet.png")] private const PLAYER_ANIM:Class;
		[Embed(source = "img/sheets/coupleCell.png")] private const PLAYER_PIX:Class;
		private var playerAnim:Spritemap;
		
			
		public function Couple(px:Number=305,py:Number=500) 
		{
			playerAnim = new Spritemap(PLAYER_ANIM, 108,147);
			
			playerAnim.add("walking", [0,1], 10, true);
			
			graphic = playerAnim;
			
			mask = new Pixelmask(PLAYER_PIX);
			type = "Couple";
			
			x = px;
			y = py;
			
			playerAnim.play("walking");
			
		}
		
		override public function update():void
		{
			if (Input.mouseDown)
			{
				x += 5
			}
			else
			{	
				x -=5;
			}
			y -= 0.5;
			
		}
		
	}

}